package com.huc.tools.config.mongo;

import com.mongodb.MongoClient;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2018/8/6
 * @Description: mongodb配置
 **/
//@Slf4j
//@Data
//@Configuration
//@ConfigurationProperties(value = "mongo")
//public class MongoDbConfig {

//    private String host;
//    private Integer port;

//    @Bean
//    public MongoClient getMongoClient() {
//        log.info("host ->{} post->{}", host, port);
//        return new MongoClient(host, port);
//    }
//}
